fs/f2fs: Set a grub_errno if mount fails
authorB Horn <b@horn.uk>
Sun, 12 May 2024 05:15:03 +0000 (06:15 +0100)
committerFelix Zielcke <fzielcke@z-51.de>
Thu, 3 Jul 2025 16:35:51 +0000 (18:35 +0200)
commit2e0d217866edfd6eded4568d0e016de5de1d0237
tree6093574187cf2744d8a1629fc987eccdaf6e0101
parentde4e52ec1cc757f2a6c75bd0c482faa6c9221f7f
fs/f2fs: Set a grub_errno if mount fails

It was previously possible for grub_errno to not be set when
grub_f2fs_mount() failed if nat_bitmap_ptr() returned NULL.

This issue is solved by ensuring a grub_errno is set in the fail case.

Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-f2fs-Set-a-grub_errno-if-mount-fails.patch
grub-core/fs/f2fs.c